package com.hmkj.core.service.trader.impl;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.mapper.trader.TraderMapper;
import com.hmkj.core.po.strategy.StrategyRank;
import com.hmkj.core.po.trader.Trader;
import com.hmkj.core.service.trader.TraderService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 操盘达人业务相关Service接口实现<br>
 *
 * @ClassName: TraderServiceImpl
 * @author eproo
 * @date   2018-07-09 03:44:29
 */
@Service
@Scope("prototype")
@Transactional(rollbackFor = Exception.class)
public class TraderServiceImpl implements TraderService {

	@Resource
    private TraderMapper traderMapper;

    @Override
    public GenericMapper<Trader,Integer> _getMapper() {
        return traderMapper;
    }

    @Override
    public List<Trader> selectExpert() {
        return traderMapper.selectExpert(Trader.STATUS.T2.code);
    }
}
